<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('AdminGood/index')}">商品管理</a></li>
			<li class="active"><a href="{:U('AdminGood/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">商品添加</a></li>
		</ul>
		<form action="{:U('AdminGood/add_post')}" method="post" class="form-horizontal js-ajax-forms" onsubmit="return checkform();" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>商品名称<span class="form-required">*</span></th>
							<td>
								<input type="text" class="require" name="good_name" id="good_name" value="{$item.good_name}" style="width: 400px" placeholder="请输入商品名称">
							</td>
						</tr>
                        <tr>
                            <th>物流卡单价<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require number" name="good_unit_price" id="good_unit_price" value="{$item.good_unit_price}" style="width: 400px" placeholder="请输入物流卡单价">
                            </td>
                        </tr>
                        <tr>
                            <th>会员卡单价<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require number" name="vip_good_unit_price" id="vip_good_unit_price" value="{$item.vip_good_unit_price}" style="width: 400px" placeholder="请输入会员卡单价">
                            </td>
                        </tr>
                        <tr>
                            <th>价格单位<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require" name="good_unit" id="good_unit" value="{$item.good_unit}" style="width: 400px" placeholder="请输入价格单位">
                            </td>
                        </tr>
                        <tr>
                            <th>是否石油<span class="form-required">*</span></th>
                            <td>
                                <select name="is_oil" id="is_oil" class="require" name="is_oil" id="is_oil" value="{$item.is_oil}" style="width: 400px" placeholder="请选择">
                                	<option value="0">此商品不是石油</option>
                                	<option value="1">此商品是石油产品</option>
                                </select>
                                <script>
                                	$('#is_oil').val('{$item.is_oil}');
                                </script>
                            </td>
                        </tr>

                    </table>
				</div>

			</div>
			<div class="form-actions">
				<input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminGood/index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

	</body>
</html>